export const list: Array<Software.IFileMap> = [
  {
    name: '微信开发者工具',
    url: 'https://servicewechat.com/wxa-dev-logic/download_redirect?type=win32_x64&from=mpwiki&download_version=1062206090&version_type=1',
    tags: ['tools', 'wechart'],
  },
  {
    name: 'nvm',
    url: 'https://github.com/coreybutler/nvm-windows/releases/download/1.1.9/nvm-setup.exe'
  },
  {
    name: 'git',
    url: 'https://github.com/git-for-windows/git/releases/download/v2.37.1.windows.1/Git-2.37.1-64-bit.exe'
  }
];


const defaultConfig = {
  /** 全部下载 */
  all: true,
  list: list
}

export const mergeConfig = (option?: Software.IOption) => {
  if (!option) return defaultConfig

  return Object.assign({}, defaultConfig, option)
};
